#define SDL_MAIN_HANDLED
#include "mainwindow.h"
#include <QApplication>
#include <QCoreApplication>
#include <QGuiApplication>
#include <QScreen>
#include <QStyleFactory>
#include <QApplication>
//#undef main
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QCoreApplication::setApplicationName("PLAYER Application");
    QCoreApplication::setApplicationVersion("1.0.0");
    QFont font("Arial", 14);
    a.setFont(font);
    a.setStyle(QStyleFactory::create("Fusion"));

    // Created using std::shared_ptr to be compatible with the observer type
    std::shared_ptr<MainWindow> mainWindow = std::make_shared<MainWindow>();
    mainWindow->registerSelf();
    mainWindow->show();

    return a.exec();
}
